home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / ldap_features.h < prev    next >
Encoding:
C/C++ Source or Header  |  2008-07-24  |  1.9 KB  |  65 lines

  1. /* include/ldap_features.h.  Generated by configure.  */
  2. /* $OpenLDAP: pkg/ldap/include/ldap_features.hin,v 1.2.2.4 2008/02/11 23:24:10 kurt Exp $ */
  3. /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  4.  *
  5.  * Copyright 1998-2008 The OpenLDAP Foundation.
  6.  * All rights reserved.
  7.  *
  8.  * Redistribution and use in source and binary forms, with or without
  9.  * modification, are permitted only as authorized by the OpenLDAP
  10.  * Public License.
  11.  *
  12.  * A copy of this license is available in file LICENSE in the
  13.  * top-level directory of the distribution or, alternatively, at
  14.  * <http://www.OpenLDAP.org/license.html>.
  15.  */
  16.  
  17. /*
  18.  * LDAP Features
  19.  */
  20.  
  21. #ifndef _LDAP_FEATURES_H
  22. #define _LDAP_FEATURES_H 1
  23.  
  24. /* OpenLDAP API version macros */
  25. #define LDAP_VENDOR_VERSION 20343
  26. #define LDAP_VENDOR_VERSION_MAJOR 2
  27. #define LDAP_VENDOR_VERSION_MINOR 3
  28. #define LDAP_VENDOR_VERSION_PATCH 43
  29.  
  30. /*
  31. ** WORK IN PROGRESS!
  32. **
  33. ** OpenLDAP reentrancy/thread-safeness should be dynamically
  34. ** checked using ldap_get_option().
  35. **
  36. ** The -lldap implementation is not thread-safe.
  37. **
  38. ** The -lldap_r implementation is:
  39. **        LDAP_API_FEATURE_THREAD_SAFE (basic thread safety)
  40. ** but also be:
  41. **        LDAP_API_FEATURE_SESSION_THREAD_SAFE
  42. **        LDAP_API_FEATURE_OPERATION_THREAD_SAFE
  43. **
  44. ** The preprocessor flag LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE
  45. ** can be used to determine if -lldap_r is available at compile
  46. ** time.  You must define LDAP_THREAD_SAFE if and only if you
  47. ** link with -lldap_r.
  48. **
  49. ** If you fail to define LDAP_THREAD_SAFE when linking with
  50. ** -lldap_r or define LDAP_THREAD_SAFE when linking with -lldap,
  51. ** provided header definations and declarations may be incorrect.
  52. **
  53. */
  54.  
  55. /* is -lldap_r available or not */
  56. #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
  57.  
  58. /* LDAP v2 Kerberos Bind */
  59. /* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND */
  60.  
  61. /* LDAP v2 Referrals */
  62. /* #undef LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS */
  63.  
  64. #endif /* LDAP_FEATURES */
  65.